﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UMC.Data.Sql;

namespace UMC.WorkFlow.Entities
{
    [Web.Apiumc]
    class Initializer : UMC.Data.Sql.Initializer
    {

        // public override string ProviderName => "TaskDbProvider";

        public override string Caption => "UMC工作流";

        public override string Name => "Workflow";
        public override bool IsRegisterSetup =>true;

        public Initializer()
        {
            

            // this.Setup(new TaskApproving() { InstanceId = 0, ShapeId = String.Empty });
            // this.Setup(new TaskCheckContorl() { ItemId = 0, ShapeId = String.Empty });
            // this.Setup(new TaskCommand() { TaskId = 0, ShapeId = String.Empty, CommandType = CommandType.Undefine, TaskStatus = TaskStatus.None });

            // this.Setup(new TaskKey() { Id = 0 },new TaskKey{ SelectSQL = String.Empty });
            // this.Setup(new TaskKeyValue() { KeyId = 0,  Value = String.Empty});
            // this.Setup(new TaskStaff() { TaskId = 0, DesignKey = String.Empty });
            // this.Setup(new TaskData() { InstanceId = 0, DataName=String.Empty, DataIndex=0 });
            // this.Setup(new TaskDesign { Id = 0 }, new TaskDesign { Context = String.Empty });
            // this.Setup(new TaskForm { TaskId = 0 });//, new TaskDesign { Context = String.Empty });
            // this.Setup(new TaskFormControl() { ItemId = 0 }, new TaskFormControl
            // {
            //     RequiredSQL = String.Empty,
            //     ShowSQL = String.Empty,
            //     CheckSQL = String.Empty,
            //     ValueSQL = String.Empty
            // });
            // this.Setup(new TaskHistory() { IdentityName = String.Empty, InstanceId = 0 });
            // this.Setup(new TaskLog() { Id = 0 }, new TaskLog { Explain = String.Empty });
            // this.Setup(new TaskMessage() { Id = 0 }, new TaskMessage { Body = String.Empty });
            // this.Setup(new TaskObSerialize() { InstanceId = 0 }, new TaskObSerialize { SerializeData = String.Empty });
            // this.Setup(new TaskRequest() { InstanceId = 0 });
            // this.Setup(new TaskSubscribe() { TaskId = 0, ShapeId = String.Empty, Username = String.Empty });
            // this.Setup(new TaskSync() { Id = 0 }, new TaskSync { FormData = String.Empty });
        }
         

        // public override void Menu(IDictionary hash)
        // {
        //     Data.DataFactory.Instance().Put(new Data.Entities.Menu()
        //     {
        //         Icon = "\uf0e8",
        //         Caption = "流程设计",
        //         IsDisable = false,
        //         ParentId = 0,
        //         Seq = 90,
        //         Id = Utility.NewGuid(),
        //         Url = "#flow"
        //     });
        // }
    }
}
